<style>
    #form-modal{
        width: 300px;
        height: 80px; 
    }

    .modal-body{
    }
</style>

<div id="form-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-body" style="text-align: center;">
        <?php echo $_POST['pesan']; ?>
    </div>
</div>


<script type="text/javascript">
    $(document).ready(function(){
        $('#form-modal').modal('show');
        $('#form-modal').on('hidden', function(){
            location.href = "<?php echo $_POST['lokasi']; ?>";
        });
    });
</script>